#ifndef BOOKMANAGE_H
#define BOOKMANAGE_H

//图书借阅主界面
#include "returnbook.h"
#include "historybook.h"
#include <QMainWindow>
#include "borrowerbookwidget.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class BookManage;
}
QT_END_NAMESPACE

class BookManage : public QMainWindow
{
    Q_OBJECT

public:
    BookManage(QWidget *parent = nullptr);
    ~BookManage();
protected:
    void resizeEvent(QResizeEvent *event) override;
private slots:
    void on_returnButton_clicked();

private:
    Ui::BookManage *ui;
    void initWindow();
    void addEvents();
    void returnButtonEvent();
    void borrowBookButtonEvent();
    void bookReturnButtonEvent();
    void loanHistoryButtonEvent();

    //图书归还界面
    ReturnBook*returnBookWidget;
    //图书借阅界面（暂时空白，之后更改为自己的Widget类）
    borrowerBookwidget*borrowerBookWidget;
    //历史借阅界面
    HistoryBook*historyBookWidget;

};
#endif // BOOKMANAGE_H
